package com.zmm.util.auth.registry.annotation;

import com.zmm.util.auth.enums.UserType;
import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 认证控制注解
 * @author 900045
 * @description:
 * @name Authentications
 * @date By 2021-07-06 09:54:37
 */
@Target(value = { ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Mapping
public @interface Authentications {

	String value() default "";

	/**
	 * 用户类型
	 *
	 * @return
	 */
	UserType[] userType();
	
}
